// const Layout = () => import('@/layout/index.vue')
import Layout from '@/App.vue'

export const error = { // 必须将 'Error' 路由放在最后 Must put the 'Error' route at the end
  path: '/:pathMatch(.*)*',
  component: Layout,
  name: 'Error',
  redirect: '/404',
  meta: {
    title: '404',
    isShow: true
  },
  children: [
    {
      path: '404',
      component: () => import(/* webpackChunkName: "error-page-404" */ '@/views/error/404.vue'),
      name: '404',
      meta: {
        title: '404',
        isShow: true
      }
    }
  ]
}
